package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.WorkStepMapper;
import com.ruoyi.business.domain.WorkStep;
import com.ruoyi.business.service.IWorkStepService;

/**
 * 工步Service业务层处理
 * 
 * @author DL
 * @date 2025-06-24
 */
@Service
public class WorkStepServiceImpl implements IWorkStepService 
{
    @Autowired
    private WorkStepMapper workStepMapper;

    /**
     * 查询工步
     * 
     * @param id 工步主键
     * @return 工步
     */
    @Override
    public WorkStep selectWorkStepById(Long id)
    {
        return workStepMapper.selectWorkStepById(id);
    }

    /**
     * 查询工步列表
     * 
     * @param workStep 工步
     * @return 工步
     */
    @Override
    public List<WorkStep> selectWorkStepList(WorkStep workStep)
    {
        return workStepMapper.selectWorkStepList(workStep);
    }

    /**
     * 新增工步
     * 
     * @param workStep 工步
     * @return 结果
     */
    @Override
    public int insertWorkStep(WorkStep workStep)
    {
        return workStepMapper.insertWorkStep(workStep);
    }

    /**
     * 修改工步
     * 
     * @param workStep 工步
     * @return 结果
     */
    @Override
    public int updateWorkStep(WorkStep workStep)
    {
        return workStepMapper.updateWorkStep(workStep);
    }

    /**
     * 批量删除工步
     * 
     * @param ids 需要删除的工步主键
     * @return 结果
     */
    @Override
    public int deleteWorkStepByIds(Long[] ids)
    {
        return workStepMapper.deleteWorkStepByIds(ids);
    }

    /**
     * 删除工步信息
     * 
     * @param id 工步主键
     * @return 结果
     */
    @Override
    public int deleteWorkStepById(Long id)
    {
        return workStepMapper.deleteWorkStepById(id);
    }
}
